package com.composetest.util

import com.composetest.core.config.Config.RESOURCE_URL

object ResourceUtil {

    fun url(uri: String): String {
        if (uri.startsWith("http")) {
            return uri
        }
        return if (uri.startsWith("files")) uri else String.format(RESOURCE_URL, uri)
    }
}